package com.wind.financial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wind.financial.mapper.FinancialmanagementMapper;
import com.wind.financial.domain.Financialmanagement;
import com.wind.financial.service.IFinancialmanagementService;

/**
 * 财务账单Service业务层处理
 * 
 * @author wind
 * @date 2024-11-13
 */
@Service
public class FinancialmanagementServiceImpl implements IFinancialmanagementService 
{
    @Autowired
    private FinancialmanagementMapper financialmanagementMapper;

    /**
     * 查询财务账单
     * 
     * @param FinancialID 财务账单主键
     * @return 财务账单
     */
    @Override
    public Financialmanagement selectFinancialmanagementByFinancialID(Long FinancialID)
    {
        return financialmanagementMapper.selectFinancialmanagementByFinancialID(FinancialID);
    }

    /**
     * 查询财务账单列表
     * 
     * @param financialmanagement 财务账单
     * @return 财务账单
     */
    @Override
    public List<Financialmanagement> selectFinancialmanagementList(Financialmanagement financialmanagement)
    {
        return financialmanagementMapper.selectFinancialmanagementList(financialmanagement);
    }

    /**
     * 新增财务账单
     * 
     * @param financialmanagement 财务账单
     * @return 结果
     */
    @Override
    public int insertFinancialmanagement(Financialmanagement financialmanagement)
    {
        return financialmanagementMapper.insertFinancialmanagement(financialmanagement);
    }

    /**
     * 修改财务账单
     * 
     * @param financialmanagement 财务账单
     * @return 结果
     */
    @Override
    public int updateFinancialmanagement(Financialmanagement financialmanagement)
    {
        return financialmanagementMapper.updateFinancialmanagement(financialmanagement);
    }

    /**
     * 批量删除财务账单
     * 
     * @param FinancialIDs 需要删除的财务账单主键
     * @return 结果
     */
    @Override
    public int deleteFinancialmanagementByFinancialIDs(Long[] FinancialIDs)
    {
        return financialmanagementMapper.deleteFinancialmanagementByFinancialIDs(FinancialIDs);
    }

    /**
     * 删除财务账单信息
     * 
     * @param FinancialID 财务账单主键
     * @return 结果
     */
    @Override
    public int deleteFinancialmanagementByFinancialID(Long FinancialID)
    {
        return financialmanagementMapper.deleteFinancialmanagementByFinancialID(FinancialID);
    }
}
